import java.util.WeakHashMap;

/**
 * 电器类
 * 练习；定义电器类，定义价格，重量，颜色属性，定义运行和停止方法
 * 定义空调类集成电器，定义最低温和最高温属性，定义制冷制热方法
 * 创建空调对象，分别调用方法
 */

public class ElectricaAppiance {
    //价格
    private  int price;
    //重量
    private  int weight;
    //颜色
    private String color;

    //运行
    public void run(){
        System.out.println("价格"+ price + "重量" + weight + "颜色"+ color + "的电器在运行");
    }

    //停止
    public void stop(){
        System.out.println("价格" + price + "重量" + weight + "颜色" + color + "的电器停止了");
    }

    public ElectricaAppiance(int price, int weight, String color) {
        this.price = price;
        this.weight = weight;
        this.color = color;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }
}

